﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Utility
{
    [AttributeUsage(AttributeTargets.Class |
 AttributeTargets.Field |
 AttributeTargets.Property,
       AllowMultiple = false,
       Inherited = false)]
    public class TableContrastAttribute : System.Attribute
    {
        private string fieldName;
        private string tableName;
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName
        {
            get { return tableName; }
            set { tableName = value; }
        }
        /// <summary>
        /// 字段名
        /// </summary>
        public string FieldName
        {
            get { return fieldName; }
            set { fieldName = value; }
        }
    }
}
